home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 075 (1990-05)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 075 (1990-05)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / p2c / Makefile.orig < prev    next >
Makefile  |  1990-05-13  |  2KB  |  50 lines

  1. # Makefile for "p2c", the Pascal to C translator.
  2. #  Copyright (C) 1989 David Gillespie.
  3. #  Author's address: daveg@csvax.caltech.edu; 256-80 Caltech/Pasadena CA 91125.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation (any version).
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; see the file COPYING.  If not, write to
  16. # the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. # This file compiles and installs p2c in the "home" subdirectory of this
  19. # directory, then runs it on various example programs in the "examples"
  20. # subdirectory.  To install a permanent, public copy of p2c, see "README"
  21. # and src/Makefile.
  22.  
  23. test:
  24.     @echo "Compiling p2c, installing in `pwd`/home..."
  25.     cd src; make install
  26.     @echo ""
  27.     @echo "Translating and compiling example files..."
  28.     cd examples; make comp
  29.     @echo ""
  30.     @echo "Running the factorial example..."
  31.     examples/fact
  32.     @echo ""
  33.     @echo "Running the 'e' computation example..."
  34.     examples/e
  35.     @echo ""
  36.     @echo "Running the self-printing Pascal example..."
  37.     examples/self >examples/self.out
  38.     cat examples/self.out
  39.     diff examples/self.p examples/self.out
  40.     @echo ""
  41.     @echo "Also try 'cref' and 'basic' in the examples directory."
  42.  
  43. install:
  44.     cd src; make install
  45.  
  46. clean:
  47.     cd src; make clean
  48.     cd examples; make clean
  49.     -rm -f p2c home/* home/p2c/*
  50.